package cuShapes;

import java.awt.Color;
import xml.*;
import java.awt.Graphics2D;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import java.awt.Point;

@XmlTransient
public abstract class PQLine {

	@XmlJavaTypeAdapter(PointAdapter.class)
	@XmlElement(name="p1")
	protected Point p1;
	@XmlJavaTypeAdapter(PointAdapter.class)
	@XmlElement(name="p2")
	protected Point p2;
	@XmlJavaTypeAdapter(ColorAdapter.class)
	@XmlAttribute
	protected Color color;
	
	public abstract void drawLine(Graphics2D g2);
	public abstract Point getStart();
	public abstract Point getEnd();
	public abstract void setStart(Point start);
	public abstract void setEnd(Point end);
}
